<?php
/**
 * Nordic Repository
 * 
 * LICENSE
 * 
 * The new BSD license is applied on this source-file. For further
 * information please visit http://license.nordic-dev.de/newbsd.txt
 * or send an email to andre.moelle@gmail.com.
 */

/**
 * Load necessary classes.
 */
Zend_Loader::loadClass('Zend_Controller_Action_Helper_Redirector');

/**
 * Extends the setGoto method to provide more than one route.
 * 
 * @category   Nordic
 * @package    Nordic_Controller
 * @copyright  2007 Nordic Development
 * @license    http://license.nordic-dev.de/newbsd.txt (New-BSD license)
 * @author     Andre Moelle <andre.moelle@gmail.com>
 * @version    $Id: Rerouter.php 3 2007-07-08 09:21:42Z andre.moelle $
 */
class Nordic_Controller_Helper_Rerouter extends Zend_Controller_Action_Helper_Redirector
{
	/**
	 * Works now with other routes.
	 * 
	 * @see Zend_Controller_Action_Helper_Redirector::setGoto()
	 */
	public function setGoto($action,
 							$controller = null,
 						 	$module = null,
 						 	array $params = array())
 	{
 		
 		$this->setGotoRoute(
 			array_merge(
 				array(
 					'controller' => $controller,
 					'action' => $action,
 					'module' => $module
 				),
 				$params
 			),
 			null,
 			true
 		);
 	}
}
?>